cd /workspace
rm -rf ./examples ./img ./__MACOSX
rm -rf .DS_Store README.md
cd /root
rm -rf anything-llm-master  open-webui __MACOSX \
    .cache .ollama
apt update && apt install tmux git-lfs -y
apt install libgl1-mesa-glx -y
[ ! -e /usr/local/bin/btop ] \
    && wget https://r2.neng.my/app/btop -O /usr/local/bin/btop \
    && chmod +x /usr/local/bin/btop
echo unset PROMPT_COMMAND >> ~/.bashrc

LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | \grep -Po '"tag_name": *"v\K[^"]*')
[ ! -e lazygit.tar.gz ] && curl -Lo lazygit.tar.gz \
    "https://github.com/jesseduffield/lazygit/releases/download/v${LAZYGIT_VERSION}/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
tar xf lazygit.tar.gz lazygit && rm lazygit.tar.gz
install lazygit -D -t /usr/local/bin/ && rm lazygit
lazygit --version
echo "alias lg='lazygit'" >> ~/.zshrc
echo "alias lg='lazygit'" >> ~/.bashrc
echo "lg for lazygit"
